﻿/**
* Event types fired by the Controller.
**/
package events 
{

import flash.events.Event;

public class ControllerEvent extends Event 
{
	/** Identifiers for the accepted event types. **/
	public static var CAPTION:String = "CAPTION";
	public static var BUFFER:String = "BUFFER";
	public static var ERROR:String = "ERROR";
	public static var ITEM:String = "ITEM";
	public static var MUTE:String = "MUTE";
	public static var PLAY:String = "PLAY";
	public static var PLAYLIST:String = "PLAYLIST";
	public static var FEEDLIST:String = "FEEDLIST";
	public static var QUALITY:String = "QUALITY";
	public static var RESIZE:String = "RESIZE";
	public static var SEEK:String = "SEEK";
	public static var STOP:String = "STOP";
	public static var REPLAY:String = "REPLAY";
	public static var VOLUME:String = "VOLUME";
	public static var FULLSCREEN:String = "FULLSCREEN";
	public static var PAUSED:String = "PAUSED";
	public static var POSITION:String = "POSITION";
	public static var LOAD_PROGRESS:String = "LOAD_PROGRESS";
	public static var CHANGE_CATEGORY:String = "CHANGE_CATEGORY";
	public static var CHANGE_VIDEO:String = "CHANGE_VIDEO";
	public static var CHANGE_TEXT:String = "CHANGE_TEXT";
	public static var CHANGE_BUTTON:String = "CHANGE_BUTTON";
	public static var LOAD_COMPLETED:String = "LOAD_COMPLETED";
	public static var LOAD_CATEGORY:String = "LOAD_CATEGORY";
	public static var VIDEO_STATS:String = "VIDEO_STATS";
	public static var TOGGLE_STATS:String = "TOGGLE_STATS";
	public static var BUTTON_LOCK:String = "BUTTON_LOCK";
	public static var COMPLETED:String = "COMPLETED";
	public static var STATE:String = "STATE";
	public static var PROGRESS:String = "PROGRESS";
	
	/** The data associated with the event. **/
	private var _data:Object;
	
	/**
	* Constructor; sets the event type and inserts the new value.
	*
	* @param typ	The type of event.
	* @param dat	An object with all associated data.
	**/
	public function ControllerEvent(typ:String, dat:Object=undefined, bbl:Boolean = false, ccb:Boolean = false) 
	{
		super(typ, bbl, ccb);
		
		_data = dat;
		
	};

	/** Returns the modified playlist **/
	public function get data():Object 
	{
		return _data;
	};


}


}